<?php echo $this->form('profile',array('method'=>"post","action"=>"edit"));?>
<div id="commonprofile">
<fieldset><div>Nom: </div><div class="label show"><?php echo $this->escape($this->profile->getFirstname());?></div><div class="edit hide"><?php echo $this->formText("firstname",$this->profile->getFirstname());?></div></fieldset>
<fieldset><div>Prenom: </div><div class="label show"><?php echo $this->escape($this->profile->getLastname());?></div><div class="edit hide"><?php echo $this->formText("lastname",$this->profile->getLastname());?></div></fieldset>
<fieldset><div>Email: </div><div><?php echo $this->escape($this->profile->getEmail());?></div></fieldset>
<div class="edit hide"><?php echo $this->formSubmit('changeCommonprofile','change',null);?><?php echo $this->formButton('DisablechangeCommonInfo','annuler',null);?></div>
<div class="label"><?php echo $this->formButton('EnablechangeCommonprofile','Editer',null);?></div>
</div>
<hr>
<div id="commonprofilepostal">
<fieldset><div>Raison social : </div><div class="label show"><?php echo $this->escape($this->profile->getRsocial());?></div><div class="edit hide"><?php echo $this->formText("rsocial",$this->profile->getRsocial());?></div></fieldset>
<fieldset><div>Adresse: </div><div class="label show"><?php echo $this->escape($this->profile->getAddress1());?></div><div class="edit hide"><?php echo $this->formText("address1",$this->profile->getAddress1());?></div></fieldset>
<fieldset><div>Complement d'adresse: </div><div class="label show"><?php echo $this->escape($this->profile->getAddress2());?></div><div class="edit hide"><?php echo $this->formText("address2",$this->profile->getAddress2());?></div></fieldset>
<fieldset><div>Code postal: </div><div class="label show"><?php echo $this->escape($this->profile->getZipcode());?></div><div class="edit hide"><?php echo $this->formText("zipcode",$this->profile->getZipcode());?></div></fieldset>
<fieldset><div>Ville: </div></span><div class="label show"><?php echo $this->escape($this->profile->getCity());?></div><div class="edit hide"><?php echo $this->formText("city",$this->profile->getCity());?></div></fieldset>
<div class="edit hide"><?php echo $this->formSubmit('changePostalInfo','change');?><?php echo $this->formButton('DisablechangePostalInfo','annuler',null);?></div>
<div class="label"><?php echo $this->formButton('EnablechangePostalInfo','Editer',null);?></div>
</div>
</form>
<?php echo $this->headScript()->appendFile('/js/profile.js','text/javascript');?>